package com.example.demo3.demo4;

public class Test {
    public static void main(String[] args) {
        BankCard bankCard=new BankCard(0);

        Boy boy=new Boy(bankCard);
        Girls girls=new Girls(bankCard);

        Thread t1=new Thread(boy,"野猪佩奇");
        Thread t2=new Thread(girls,"母猪佩奇");

        t1.start();
        t2.start();


    }
}
